require 'xml/libxml_so'
require 'Library'
require 'Song'
require 'File_Manager'

lib = Library.new("input.xml")
lib.update_song("071248fj3908absf2idosjfoa",7.0,2,Time.new)
s = Song.new("Drive (dc2956604).wma","String Cheese Incident","One Step Closer", "Drive",233,"",3,5.0,"20060701 18:43:12");
lib.add_song(s);

lib.print_library_debug
lib.save("output.xml")




#Updates the song 'Noots' to a rating of 7.0, increments the play counter by 2, and updates the most recent playtime to the present moment.

#update_song
#m_hash = magic song hash, generated by getSongHash to identify an individual song
#rating = float value out of 10.0, rating the song
#playcount = number of times the song has been played since the last update (not just a simple by-1 increment, due to portable player syncing)
#play date = takes a ruby Time object and formats it appropriately.  Assumedly, it shouldn't be too difficult to make this all work


#lib.print_library_debug

